package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SafeInformationMapper;
import com.ruoyi.system.domain.SafeInformation;
import com.ruoyi.system.service.ISafeInformationService;

/**
 * 实验守则Service业务层处理
 * 
 * @author kk
 * @date 2023-06-20
 */
@Service
public class SafeInformationServiceImpl implements ISafeInformationService 
{
    @Autowired
    private SafeInformationMapper safeInformationMapper;

    /**
     * 查询实验守则
     * 
     * @param safeID 实验守则主键
     * @return 实验守则
     */
    @Override
    public SafeInformation selectSafeInformationBySafeID(String safeID)
    {
        return safeInformationMapper.selectSafeInformationBySafeID(safeID);
    }

    /**
     * 查询实验守则列表
     * 
     * @param safeInformation 实验守则
     * @return 实验守则
     */
    @Override
    public List<SafeInformation> selectSafeInformationList(SafeInformation safeInformation)
    {
        return safeInformationMapper.selectSafeInformationList(safeInformation);
    }

    /**
     * 新增实验守则
     * 
     * @param safeInformation 实验守则
     * @return 结果
     */
    @Override
    public int insertSafeInformation(SafeInformation safeInformation)
    {
        return safeInformationMapper.insertSafeInformation(safeInformation);
    }

    /**
     * 修改实验守则
     * 
     * @param safeInformation 实验守则
     * @return 结果
     */
    @Override
    public int updateSafeInformation(SafeInformation safeInformation)
    {
        return safeInformationMapper.updateSafeInformation(safeInformation);
    }

    /**
     * 批量删除实验守则
     * 
     * @param safeIDs 需要删除的实验守则主键
     * @return 结果
     */
    @Override
    public int deleteSafeInformationBySafeIDs(String[] safeIDs)
    {
        return safeInformationMapper.deleteSafeInformationBySafeIDs(safeIDs);
    }

    /**
     * 删除实验守则信息
     * 
     * @param safeID 实验守则主键
     * @return 结果
     */
    @Override
    public int deleteSafeInformationBySafeID(String safeID)
    {
        return safeInformationMapper.deleteSafeInformationBySafeID(safeID);
    }
}
